package com.heifeng.cloudshelf.mvp.model;

import java.util.List;

/**
 * Created by Administrator on 2019/9/14.
 */

public class ProgrammeSelectInfo {
    private int icon;
    private String title;
//    private List<String> list;
    private List<OptionBean> options;

    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<OptionBean> getOptions() {
        return options;
    }

    public void setOptions(List<OptionBean> options) {
        this.options = options;
    }

    public static class OptionBean{
        private int parentId;
        private int groupId;
        private int id;
        private String spec_name;
        private boolean isSelected = false;

        public OptionBean(int groupId, int id, String spec_name) {
            this.groupId = groupId;
            this.id = id;
            this.spec_name = spec_name;
        }

        public OptionBean(int parentId, int groupId, int id, String spec_name) {
            this.parentId = parentId;
            this.groupId = groupId;
            this.id = id;
            this.spec_name = spec_name;
        }

        public OptionBean(int parentId, int groupId, int id, String spec_name, boolean isSelected) {
            this.parentId = parentId;
            this.groupId = groupId;
            this.id = id;
            this.spec_name = spec_name;
            this.isSelected = isSelected;
        }

        public int getParentId() {
            return parentId;
        }

        public int getGroupId() {
            return groupId;
        }

        public int getId() {
            return id;
        }

        public String getSpec_name() {
            return spec_name;
        }

        public void setSelected(boolean selected) {
            isSelected = selected;
        }

        public boolean isSelected() {
            return isSelected;
        }

        @Override
        public String toString() {
            return "OptionBean{" +
                    "parentId=" + parentId +
                    ", groupId=" + groupId +
                    ", id=" + id +
                    ", spec_name='" + spec_name + '\'' +
                    ", isSelected=" + isSelected +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "ProgrammeSelectInfo{" +
                "icon=" + icon +
                ", title='" + title + '\'' +
                ", options=" + options +
                '}';
    }
}
